package com.xcc.common.mapper;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.xcc.common.model.ButtonConfig;
import com.xcc.common.model.CommonTable;
import com.xcc.common.model.TableCommonAttr;
import com.xcc.common.model.TableInformation;

@Mapper
public interface CommonMapper {

	public  TableInformation selectTableName(String tableId);
	
	public List<Map<String,String>> selectPageInfo(@Param("mCommonTable") CommonTable mCommonTable, @Param("list") List<Map<String, String>> list);
	
	public long selectPageInfoTotal(@Param("mCommonTable") CommonTable mCommonTable, @Param("list") List<Map<String, String>> list);
	
	
	
	
	
	
	
	public List<Map<String,String>> selectButtonAction(ButtonConfig mCommonTable);
	
	
	//public List<Map<String,String>> selectCommon(TableCommonAttr label);
	
	public  List<Map<String,Object>> selectFormlabel(TableCommonAttr label);
							 
	
	public  List<Map<String,String>>  selectTablelabel(TableCommonAttr label);
	
	public List<Map<String,String>> selectCommon(@Param("mCommonTable") CommonTable mCommonTable,@Param("list")List<Map<String,Object>> list);
	
	
	
	public List<Map<String,Object>> execte(@Param("sql")String sql);

	public void commonSave(@Param("mCommonTable") CommonTable mCommonTable);

	public void commondelete(@Param("mCommonTable") CommonTable mCommonTable);
	
	
	
	
}
